// 登录接口需要携带参数ts类型
export interface loginFormData {
  username: string,
  password: string
}

// 定义全部接口返回数据都有的ts类型
export interface ResponseData{
  code:number,
  message:string,
  ok:boolean,

}


// 登录接口出参
export interface loginResponseData extends ResponseData{
  data: string
}

// 获取用户信息出参
export interface userInfoResponseData extends ResponseData  {
  data: {
    routes:string[],
    buttons:string[],
    roles:string[],
    name:string,
    avatar:string
  }
}